# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=detect-it-easy
_pkgname=die
pkgver=3.10
pkgrel=1
epoch=3
groups=('blackarch' 'blackarch-binary' 'blackarch-reversing')
pkgdesc='A program for determining types of files.'
arch=('x86_64')
url='https://github.com/horsicq/DIE-engine/releases'
license=('MIT')
depends=('qt5-script')
source=("https://github.com/horsicq/DIE-engine/releases/download/$pkgver/$pkgname-$pkgver-1-x86_64.pkg.tar.zst")
sha512sums=('41a28fd1b71545adfbc9ac585d18d12d2cbb9d5da4642bbd5c29a0c54f4f4513c5d901ab7bd1fc3595a55610a9593131ae137f18ea7e49fcab697e4780542879')

package() {
  install -dm 755 "$pkgdir/usr/bin"
  install -dm 755 "$pkgdir/opt/$pkgname"
  install -dm 755 "$pkgdir/usr/share"

  cp -a usr/bin/* "$pkgdir/usr/bin/"
  cp -a usr/share/* "$pkgdir/usr/share/"
  cp -a "opt/$pkgname/"* "$pkgdir/opt/$pkgname"
}

